package com.zgx.plus.generator.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zgx.plus.generator.po.GenTable;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GenTableMapper extends BaseMapper<GenTable> {
    GenTable selectGenTableByName(String subTableName);

    List<GenTable> selectGenTableList(GenTable genTable);

    List<GenTable> selectDbTableList(Page page, GenTable genTable);

    List<GenTable> selectDbTableListByNames(@Param("list") List<String> list);

    List<GenTable> selectGenTableAll();

    int updateGenTable(GenTable genTable);

    void deleteGenTableByIds(Long[] tableIds);

    int insertGenTable(GenTable table);

    GenTable selectGenTableById(Long id);
}
